
#ifndef _PARSE_H
#define _PARSE_H


#define LEFTSHIFT 42
#define RIGHTSHIFT 54

#define CAPSLOCK 58
#define ESC 1

#define UP 103
#define DOWN 108
#define LEFT 105
#define RIGHT 108
#define BACKSPACE -14

struct parse_key {
	char key;
	unsigned int value;
};

struct parse_key acsii[] = {
	{'1', 2},
	{'2', 3},
	{'3', 4},
	{'4', 5},
	{'5', 6},
	{'6', 7},
	{'7', 8},
	{'8', 9},
	{'9', 10},
	{'0', 11},

	{'A', 30},
	{'S', 31},
	{'D', 32},
	{'F', 33},
	{'G', 34},
	{'H', 35},
	{'J', 36},
	{'K', 37},
	{'L', 38},
	{'Z', 44},
	{'X', 45},
	{'C', 46},
	{'V', 47},
	{'B', 48},
	{'N', 49},
	{'M', 50},
	{'Q', 16},
	{'W', 17},
	{'E', 18},
	{'R', 19},
	{'T', 20},
	{'Y', 21},
	{'U', 22},
	{'I', 23},
	{'O', 24},
	{'P', 25},

	{'-', 12},
	{'=', 13},
	{'\t', 15},
	{'[', 26},
	{']', 27},
	{';', 39},
	{'\'', 40},
	{'`', 41},
	{'\\', 43},
	{',', 51},
	{'.', 52},
	{'/', 53},
	{' ', 57},
	{'\r',28},

	//for special key F1 F2 F3......

	{-5, 63},
	{-14, 14},

	{ '\0', 0}

	
};

#endif